<template>
  <div>
    我是用户页
    <p>用户id:{{$route.params.id}}</p>
  </div>
</template>

<script>
export default {
    name:'UserIndex',
    created(){
        console.log(this.$route)
    }
}
</script>

<style>

</style>